import request from '@/utils/request'

// 查询档案盒盒记录上报列表
export function listArchiveBoxInoutRecords(query) {
  return request({
    url: '/archive/ArchiveBoxInoutRecords/list',
    method: 'get',
    params: query
  })
}

// 查询档案盒盒记录上报详细
export function getArchiveBoxInoutRecords(id) {
  return request({
    url: '/archive/ArchiveBoxInoutRecords/' + id,
    method: 'get'
  })
}

// 新增档案盒盒记录上报
export function addArchiveBoxInoutRecords(data) {
  return request({
    url: '/archive/ArchiveBoxInoutRecords',
    method: 'post',
    data: data
  })
}

// 修改档案盒盒记录上报
export function updateArchiveBoxInoutRecords(data) {
  return request({
    url: '/archive/ArchiveBoxInoutRecords',
    method: 'put',
    data: data
  })
}

// 删除档案盒盒记录上报
export function delArchiveBoxInoutRecords(id) {
  return request({
    url: '/archive/ArchiveBoxInoutRecords/' + id,
    method: 'delete'
  })
}
export function getBoxInoutRecordList(recordId) {
  return request({
    url: '/archive/ArchiveBoxInoutdetail/selectArchiveBoxByRecordId/' + recordId,
    method: 'get'
  })
}
